
## library
############################################################
. ./win-library.sh
. ./win-config.sh

## xtools
cloneZip     xlxpublic/xtools-win-tomcat   $INSTALL_HOME tomcat

## config
STARTUP_FILE=$INSTALL_HOME/tomcat/startup.bat
echo -e "set JAVA_HOME=$INSTALL_HOME/jdk\r\n"           >$STARTUP_FILE
echo -e "set CATALINA_HOME=$INSTALL_HOME/tomcat\r\n"   >>$STARTUP_FILE
echo -e "set CATALINA_BASE=$INSTALL_HOME/tomcat\r\n"   >>$STARTUP_FILE
echo -e "$INSTALL_HOME/tomcat/bin/startup.bat\r\n"     >>$STARTUP_FILE
echo -e "pause\r\n"                                    >>$STARTUP_FILE

SHUTDOWN_FILE=$INSTALL_HOME/tomcat/shutdown.bat
echo -e "set JAVA_HOME=$INSTALL_HOME/jdk\r\n"           >$SHUTDOWN_FILE
echo -e "set CATALINA_HOME=$INSTALL_HOME/tomcat\r\n"   >>$SHUTDOWN_FILE
echo -e "set CATALINA_BASE=$INSTALL_HOME/tomcat\r\n"   >>$SHUTDOWN_FILE
echo -e "$INSTALL_HOME/tomcat/bin/shutdown.bat\r\n"    >>$SHUTDOWN_FILE
echo -e "pause\r\n"                                    >>$SHUTDOWN_FILE

 


